<div class="layui-form" lay-filter="layuiadmin-form-equipment" style="padding: 20px 0 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">纳税人识别号</label>
        <div class="layui-input-inline">
            <script type="text/html" template="">
                <input type="text" name="NSRSBH" class="layui-input"
                       lay-verify="required"
                       placeholder="请输入纳税人识别号"
                       value=""
                       autocomplete="off">

            </script>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">纳税人名称</label>
        <div class="layui-input-inline">
            <script type="text/html" template="">
                <input name="NSRMC" class="layui-input"
                       placeholder="请输入纳税人名称"
                       autocomplete="off">

            </script>

        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">设备型号</label>
        <div class="layui-input-inline">
            <script type="text/html" template="">
                <input name="SBXH" type="" class="layui-input"
                       placeholder="请输入设备型号"
                       autocomplete="off">

            </script>

        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">单位最大产能</label>
        <div class="layui-input-inline">
            <script type="text/html" template="">
                <input name="DWZDCN" class="layui-input"
                       placeholder="请输入单位最大产能"
                       autocomplete="off">

            </script>

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">数量</label>
        <div class="layui-input-inline">
            <script type="text/html" template="">
                <input name="SL" class="layui-input"
                       placeholder="请输入数量"
                       autocomplete="off">

            </script>

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">生产日期</label>
        <div class="layui-input-inline">
<!--            <script type="text/html" template="">-->
                <input id="SCRQ" name="SCRQ" class="layui-input"
                       placeholder="请输入生产日期"
                       autocomplete="off">

<!--            </script>-->

        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">投入生产日期</label>
        <div class="layui-input-inline">
<!--            <script type="text/html" template="">-->
                <input id="TRSCRQ" name="TRSCRQ" class="layui-input"
                       placeholder="请输入投入生产日期"
                       autocomplete="off">

<!--            </script>-->
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">有效标志</label>
        <div class="layui-input-inline">
            <script type="text/html" template="">
                <input type="radio" name="sex" value="Y" title="是">
                <input type="radio" name="sex" value="N" title="否" >
            </script>

        </div>
    </div>

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">录入人</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <script type="text/html" template="">-->
<!--                <input name="LRR" class="layui-input"-->
<!--                       placeholder="请输入录入人"-->
<!--                       autocomplete="off">-->
<!--                </datalist>-->
<!--            </script>-->
<!--        </div>-->
<!--    </div>-->

<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">修改人</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <script type="text/html" template="">-->
<!--                <input name="XGR" class="layui-input"-->
<!--                       placeholder="请输入修改人"-->
<!--                       autocomplete="off">-->
<!--                </datalist>-->
<!--            </script>-->
<!--        </div>-->
<!--    </div>-->
    <div class="layui-form-item">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <input type="button" lay-submit lay-filter="LAY-equipment-submit" value="确认" class="layui-btn">
        </div>
    </div>
</div>
<script>

    layui.use(['form', 'laydate'], function () {
        var form = layui.form
            , laydate = layui.laydate
            , $ = layui.$
        $(".layui-form-label").css({"width": "140px"});
        console.log(11111111111)
        // lay('.date-format').each(function () {
        //     console.log('时间框。。。')
        //     laydate.render({
        //         elem: this
        //         , trigger: 'click'
        //     });
        // });

        laydate.render({     //创建时间选择框
            elem: '#SCRQ' ,//指定元素
            trigger: 'click',
            // type:'datetime'
        });
        laydate.render({     //创建时间选择框
            elem: '#TRSCRQ', //指定元素
            trigger: 'click',
        });
        // laydate.render({     //创建时间选择框
        //     elem: '#LRRQ' //指定元素
        // });
        // laydate.render({     //创建时间选择框
        //     elem: '#XGRQ' //指定元素
        // });
        // form.verify({
        //     isExist: function (value) {
        //         var params = $('.layui-input-inline input[name="roleName"]').val();
        //         debugger
        //         var data;
        //         $.ajax({
        //             url: 'http://172.20.10.12:8000/post/',
        //             beforeSend: function (XMLHttpRequest) {
        //                 XMLHttpRequest.setRequestHeader("Authorization", layui.data('layuiAdmin', 'Authorization'));
        //             },
        //             contentType: "application/json",
        //             dataType: 'json',
        //             type: "post",
        //             async: false,
        //             data: JSON.stringify({"name": params}),
        //             success: function (result) {
        //                 data = result
        //             },
        //         });
        //         if (false) {
        //             return '用户id已存在';
        //         }
        //
        //     }
        //
        // })
    })
</script>



